home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / YAKMOUSE.H < prev    next >
C/C++ Source or Header  |  1993-02-14  |  732b  |  32 lines

  1. #ifndef YAKMOUSE.H
  2.  
  3. #define YAKMOUSE.H
  4.  
  5. #include "icon.h"
  6.  
  7. class yakMouse
  8. {
  9. public:
  10.   enum buttonType {noButtons = 0, leftButton = 0x01, rightButton = 0x02, reset = 0xff,
  11.            eitherButton = 0x03};
  12.   void init(void);
  13.   void remove(void);
  14.   void show(void);
  15.   void hide(void);
  16.   void beStandardMouse(void);
  17.   void setImage(char * mouseDef, int color);
  18.   word x(void);
  19.   word y(void);
  20. //  word numberOfButtons(void);
  21.   void display(int x, int y, int topclip, int botclip, word offset);
  22.   word buttonStatus(void);
  23.   byte isPressed(buttonType myButtons);
  24.   byte isClicked(buttonType myButtons);
  25.   byte isInBox(int x1, int y1, int x2, int y2);
  26. };
  27.  
  28. #ifndef YAKMOUSEUNIT
  29. extern yakMouse mouse;
  30. #endif
  31.  
  32. #endif